/**
 * Copyright (c) 2010-2011 Pierre Labatut
 *
 * This file is part of Space-Chronicles project.
 *
 * Space-Chronicles is free software: you can redistribute it and/or modify it
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or <http://code.google.com/p/space-chronicles/>.
 */
package space.audio;

import java.util.logging.Level;
import java.util.logging.Logger;

import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Mixer.Info;
import space.game.splash.InitializationTask;

public class AudioInitializationTask implements InitializationTask {

    static private final Logger logger = Logger.getLogger(
            AudioInitializationTask.class.getName());

    public String title() {
        return "Initialize Audio";
    }

    public void run() {
        logger.info("Initialize sound");
        for (Info info : AudioSystem.getMixerInfo()) {
            logger.log(Level.INFO, "Mixer: {0} - {1} - {2} - {3}",
                    new Object[]{info.getVendor(),
                        info.getName(),
                        info.getDescription(),
                        info.getVersion()});
        }
    }
}
